Tag Link | [File->Get] | Category | File |
---|---|---|---|
Type | Member | Source Available | Yes |
Support | Preferred | Version | 7.0 |
Change | Unchanged | Data Source | Any |
Output Type | String | Security | File |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Returns a single byte (character) or line depending on the file's read mode. Always returns the next character or line from the current file position, which can be explicity set using the [File->SetPosition] tag. Can be used sequentially to return multiple characters or lines in order. Note that each line returned does not end with a return or newline character.
[File Variable->Get]
No Parameters Required.
To retrieve a single line from a file:
Use the [File->Get] tag. The following example reads the first three lines in the myfile.txt file and returns them sequentially.
[Var:'File'=(File: 'myfile.txt', File_OpenRead, File_ModeLine)]
[$File->get]<br>
[$File->get]<br>
[$File->get]
[$File->Close]
Substitution | ||
---|---|---|
|
|
|